package imper.main.listener;

import imper.engine.entity.ArmyBoat;
import imper.engine.entity.ArmyBoatType;
import imper.graphic.ButtonListener;
import imper.graphic.event.ClickEvent;

public class BoatInfoListener implements ButtonListener
{
	protected ArmyBoatType _BoatArmy;
	protected ArmyBoat _ArmyBoat;

	public BoatInfoListener( ArmyBoatType pBoatArmy,ArmyBoat pArmyBoat )
	{
		this._BoatArmy = pBoatArmy;
		this._ArmyBoat = pArmyBoat;
	}

	@Override
	public void click(ClickEvent pEvent)
	{
		_ArmyBoat.setIdBoat(_BoatArmy.getId());
	}
}
